
#include <BGridLayout>
#include <BLabel>
#include <BShape>
#include <BNode>

#include "RotationNote.h"

RotationNote::RotationNote(BWidget* parent) : Note(parent)
{
	this->setTitle("Rotation");

	_xSpinBox = new BRealSpinBox();
	_ySpinBox = new BRealSpinBox();
	_zSpinBox = new BRealSpinBox();

	BGridLayout* gridLayout = new BGridLayout(this);
	gridLayout->addWidget(0, 0, new BLabel("X"));
	gridLayout->addWidget(0, 1, _xSpinBox);
	gridLayout->addWidget(1, 0, new BLabel("Y"));
	gridLayout->addWidget(1, 1, _ySpinBox);
	gridLayout->addWidget(2, 0, new BLabel("Z"));
	gridLayout->addWidget(2, 1, _zSpinBox);

	connect(this, Signal_AssetChanged, &RotationNote::slotAssetChanged);
	connect(_xSpinBox, Signal_EditFinished, &RotationNote::slotXSpinBoxEditFinished);
	connect(_ySpinBox, Signal_EditFinished, &RotationNote::slotYSpinBoxEditFinished);
	connect(_zSpinBox, Signal_EditFinished, &RotationNote::slotZSpinBoxEditFinished);

}
RotationNote::~RotationNote()
{

}

void RotationNote::slotAssetChanged(BObject* object, const BValue& value)
{

}
void RotationNote::slotXSpinBoxEditFinished(BObject* object, const BValue& value)
{
	BReal x = value;
}
void RotationNote::slotYSpinBoxEditFinished(BObject* object, const BValue& value)
{
	BReal y = value;
}
void RotationNote::slotZSpinBoxEditFinished(BObject* object, const BValue& value)
{
	BReal z = value;
}
